import type { XtxGuessInstance } from "@/types/component";
import { ref } from "vue";

/**
 * 猜你喜欢组合式函数
 */
export const useGuessList = () => {

  //获取猜你喜欢组件实例
  const guessRef = ref<XtxGuessInstancee>()

  //滚动触底事件
  const onScrolltolower = () => {
    console.log("触底");
    guessRef.value?.getMore()

  }
  //返回 ref 和事件处理函数
  return {
    guessRef,
    onScrolltolower,
  }

}
